import request from '@/utils/request'

// 查询货架信息列表
export function listRack(query) {
  return request({
    url: '/system/wmsWarehouseRack/list',
    method: 'get',
    params: query
  })
}

// 查询货架信息详细
export function getRack(rackId) {
  return request({
    url: '/system/wmsWarehouseRack/' + rackId,
    method: 'get'
  })
}

// 新增货架信息
export function addRack(data) {
  return request({
    url: '/system/wmsWarehouseRack',
    method: 'post',
    data: data
  })
}

// 修改货架信息
export function updateRack(data) {
  return request({
    url: '/system/wmsWarehouseRack',
    method: 'put',
    data: data
  })
}

// 删除货架信息
export function delRack(rackId) {
  return request({
    url: '/system/wmsWarehouseRack/' + rackId,
    method: 'delete'
  })
}


